// 频道请求模块
import request from "@/utils/request"

export const getChannels = () => {
    return request({
      method: 'GET',
      url: '/v1_0/channels',
    })
  }
// 添加用户频道
  export const addUserChannels = (data) => {
    return request({
      method: 'PATCH',
      url: '/v1_0/user/channels',
      data
    })
  }

  // 删除指定用户频道
  export const deleteUserChannels = (target) => {
    return request({
      method: 'DELETE',
      url: `/v1_0/user/channels/${target}`,
    })
  }